{\d
n
and
}
to delimit DN text. If you use dollar-signs, these signs cannot
be used for other purposes, such as printing a dollar-sign or switching to
mathematical mode. However, dollar-signs can be printed by means of
\char36
(in TEX) or \symbol{36}
(in LaTeX). Switching to
mathematical mode can be accomplished in an alternative way in LaTeX by
using \(
and \)
as delimiters of mathematical mode.
The preprocessor does the following with text between DN-delimiters:
1. It translates the Devanagari-text into TEX-macro's.
2. It takes care of the switch to a Devanagari-font.
3. It takes care of adjustment of various TEX-parameters. (hyphenation,
line-distance etc.)
One can imagine situations in which not all of these functions are needed or
desired. The behaviour of the preprocessor after seeing a dollar-delimiter
can be defined with the preprocessor commands @dolmode1
,
@dolmode2
and @dolmode3
. The preprocessor command @dolmode1
activates functions 1,2 and 3. This is equivalent to @dollars
. The
preprocessor command @dolmode2
activates the funtions 1 and 2, while
the command @dolmode3
only activates function 1. Using
{\d
n#
and
}
to delimit DN-text has the same effect as using dollars after
specifying the @dolmode3
command, i.e. only function 1 is activated.
When the preprocessor sees
{\d
n
it always switches to DN mode, without
considering the context. This means that you cannot use the string
`{\d
n
' within a `verbatim'-environment. This also means that
you should not `hide' this string within the definition of another macro
or command. For instance, the following construction will fail:
\def\bigdn{\dn \dnbig } {\bigdn acchaa}
It should also be noted that the file-structure within DN text will not
be preserved by the preprocessor. This means that single end-of-lines may
appear in other places than in the original file. Because a space and an
end-of-line are the same for TEX, this will in general not influence the
final output. However, it is possible to leave the carriage returns in the
same place before and after processing by the preprocessor by using the
@obeylines
preprocessor command. This command should not be confused
with the
\obeylines
command, which is a TEX-command.